#include <boost/test/unit_test.hpp>
#include <logger/Log.h>
#include <logger/Builder.h>


BOOST_AUTO_TEST_CASE(test_builder)
{
	using namespace logger;

	OStreamLoggerScope scope_logger(kAll, std::cerr);
	{
		int result = get_log_builder().build_from_file("log.json", "json");
		BOOST_CHECK(result == 0);

		result = get_log_dispatcher().start();
		BOOST_CHECK(result == 0);
	}


	CLOGS(kDebug) << "log build complete";
}
